package com.example.aerospacemanagementsystem.service.logisticsService.impl.impl;


import com.example.aerospacemanagementsystem.entity.basic.Job;
import com.example.aerospacemanagementsystem.entity.logistics.Item;
import com.example.aerospacemanagementsystem.mapper.basicMapper.JobMapper;
import com.example.aerospacemanagementsystem.mapper.logisticsMapper.ItemMapper;
import com.example.aerospacemanagementsystem.service.logisticsService.impl.ItemService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 李铭
* @description 针对表【item】的数据库操作Service实现
* @createDate 2023-11-03 10:16:51
*/
@Service
public class ItemServiceImpl implements ItemService {
    @Autowired
    private ItemMapper itemMapper;

    @Override
    public int add(Item item) {
        return itemMapper.insert(item);
    }

    @Override
    public int delete(Item item) {
        return itemMapper.delete(item);
    }

    @Override
    public int update(Item item) {
        return itemMapper.update(item);
    }

    @Override
    public List<Item> getAllItem(Item item) {
        return itemMapper.getAllItem(item);
    }

}






